﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JGSY.SerialCommunication.UpperComputer.Core.AOP.Decorator
{
    /// <summary>
    /// 具体装饰器A
    /// </summary>
    public class LoggingDecorator : AbstractServiceDecorator
    {
        public LoggingDecorator(IService service) : base(service) { }

        public override void Execute()
        {
            Console.WriteLine("开始记录日志...");
            base.Execute();
            Console.WriteLine("结束记录日志。");
        }
    }
}
